import { createBrowserRouter } from 'react-router';

const router = createBrowserRouter([
  {
    index: true,
    path: '/login',
    shouldRevalidate: ({ currentParams, nextParams }) => {
      console.log(currentParams, nextParams);
      return currentParams !== nextParams;
    },
    lazy: async () => ({
      Component: (await import('@/pages/login')).Login,
    }),
  },
]);
export default router;
